
<?php if(isset($rows)) :?>
<?php foreach($rows as $friend): if ($friend->isvalid):?>

<li data-icon="false"><a
				href="<?=site_url('user_controller/show_user_profile');?>?userID=<?=$friend->userid?>">
<h3>
	<?=$friend->fullname?>
</h3>

</a></li>
<h4>
	<?php	if($friend->gender==0) : echo "Male"; else: echo "Female"; endif;	?>
</h4>

<h4>
	<?php	if (isset($friend->location) and $friend->location!=NULL):
	echo "Lives in ".$friend->location; endif;	?>
</h4>

<h4>
	<?php	if (isset($friend->birthdate) and $friend->birthdate!="0000-00-00"):
	echo "was born in ".$friend->birthdate; endif;	?>
</h4>

<h4>
	<i> <?php	if (isset($friend->language) and $friend->language!=NULL):
	echo "speaks ".$friend->language; endif;	?>
	</i>
</h4>



<a
	href="<?=site_url('messege_controller/to_send_messege?receiverid='.$friend->userid);?>"
	data-role="button">Leave him a message!</a>
	




<?php endif; endforeach;?>
<?php else :?>
<!--<?php echo 'There is no hello now!';?>-->
<h4>You don't have friends now!</h4>
<?php endif; ?>



